define(()=>{
    return function(data, box){
        let str = "";
        data.forEach(val=>{
            str +=`<li class="sp-list1 box" index="${val.proId}">
            <a  href="../third-Magnifier.html?id=${val.proId}">
            <img src="${val.img}" alt="" >
            <div>
                <p class="item-price">
                    <span class="price">￥${val.price}</span>
                </p>
            </div>
            <p class="item-name"><a rel="nofollow" class="item-link" herf="./third-Magnifier.js">${val.proName}</a></p>
            <p class="item-comment-dispatching">
                <a href="" class="comment">
                    <span class="grey" style="font-size: 12px
                    ;">已有</span>
                    2910
                    <span class="grey">人评价</span>
                </a>
            </p></a>           
            <p class="item-shop"><span class="nnamezy">自营</span></p>
            <p class="item-option">
                加入购物车
            </p>
        </li>`
        })
        box.html(str);
    }
})